<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<style>
.title {
    
}

.des {
    float:left;
}

.clear {
    clear:both;
}
</style>
<?php
    
    $dom = new DOMDocument('1.0','utf-8');
    $dom->load("http://vnexpress.net/rss/tin-moi-nhat.rss");
    
    $items = $dom->getElementsByTagName("item");
    
    $i=0;
    foreach($items as $item){
        $title = $item->getElementsByTagName('title')->item(0)->nodeValue;
        $des = $item->getElementsByTagName('description')->item(0)->nodeValue;    
       
        echo "<div id='$i' class='des'>";
        echo $des;
        echo "</div>";
        
        echo "<div class='title'>";
        echo $title;
        echo "</div>";
?>
    <script>
        var s = document.getElementById("<?php echo  $i ?>").getElementsByTagName('img')[0];
        document.getElementById("<?php echo  $i ?>").innerHTML = "<img src='" + s.src + "'/>";
    </script>
<?php
        echo "<div class='clear'></div>";
        $i++;
    }

?>